package connect4client.commands;


import messages.InvalidMoveMessage;
import messages.PlayerMoveMessage;

/**
 * The InvalidMove command.
 * 
 * This command will handle Invite messages.
 */
public class InvalidMoveCommand extends Command {

	public InvalidMoveCommand(InvalidMoveMessage inviteMessage){
		super(inviteMessage);
	}
	
	@Override
	public void execute() {
		PlayerMoveMessage moveMessage = ((InvalidMoveMessage)this.message).getOriginalMessage();
		guiMediator.invalidMove(moveMessage.getMatchId());
	}
}
